import React from 'react';
import {View, Text, StyleSheet, Linking, TouchableOpacity} from 'react-native';

const DocumentationScreen = () => {
  const openDocs = () => {
    Linking.openURL('https://reactnative.dev/docs/getting-started');
  };

  return (
    <View style={styles.container}>
      <Text style={styles.title}>React Native 文档</Text>
      <Text style={styles.description}>
        React Native 官方文档提供了详细的开发指南、API 参考和最佳实践。
      </Text>
      <TouchableOpacity style={styles.button} onPress={openDocs}>
        <Text style={styles.buttonText}>查看官方文档</Text>
      </TouchableOpacity>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    padding: 16,
    backgroundColor: '#fff',
  },
  title: {
    fontSize: 24,
    fontWeight: 'bold',
    marginBottom: 16,
  },
  description: {
    fontSize: 16,
    lineHeight: 24,
    color: '#666',
    marginBottom: 24,
  },
  button: {
    backgroundColor: '#0066CC',
    padding: 12,
    borderRadius: 8,
    alignItems: 'center',
  },
  buttonText: {
    color: '#fff',
    fontSize: 16,
    fontWeight: '600',
  },
});

export default DocumentationScreen; 